package org.jeecgframework.web.service;
import org.jeecgframework.core.common.service.CommonService;
import org.jeecgframework.web.system.pojo.base.CbsServiceEntity;
import org.jeecgframework.web.system.pojo.base.CbsServiceErrorLogEntity;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.Serializable;

public interface CbsServiceErrorLogServiceI extends CommonService{
	
 	public <T> void delete(T entity);
 	
 	public <T> Serializable save(T entity);
 	
 	public <T> void saveOrUpdate(T entity);
 	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(CbsServiceErrorLogEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(CbsServiceErrorLogEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(CbsServiceErrorLogEntity t);

	/**
	 * 服务单异常导出
	 * @param request
	 * @param response
	 */
 	public void exportXLS(HttpServletRequest request, HttpServletResponse response);

	/**
	 * 添加服务单异常
	 * @param t
	 * @return
	 */
	public boolean doAdd(CbsServiceEntity cbsService,String sn,String abnormalCause);
}
